const {seq, DataTypes} = require('../sequelize')

const UserRoleAttributes = {
    user_id: {
        type: DataTypes.INTEGER,
        allowNull: false,
        Comment: '用户id'
    },
    role_id: {
        type: DataTypes.INTEGER,
        allowNull: false,
        Comment: '角色id'
    }
}

const UserRole = seq.define('yyb_user_role',UserRoleAttributes, {
    createdAt: true,
    updatedAt: true,
    timestamps: false,
    freezeTableName: true
})

UserRole.sync() 

module.exports = {
    UserRole,
    UserRoleAttributes 
} 
